﻿using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace viBook.Models
{
    public class Page
    {
        public int Id { set; get; }
        public int ChapterId { set; get; }
        public virtual Chapter Chapter { set; get; }
        public int Number { set; get; }
        public string ImageSource { set; get; }
        public virtual IEnumerable<Tag> Tags { get; set; }

        [NotMapped]
        public int NextPageId { get; set; }
        [NotMapped]
        public string NextPageUrl { get; set; }
        [NotMapped]
        public string PreviousPageUrl { get; set; }
        [NotMapped]
        public int PreviousPageId { get; set; }
        [NotMapped]
        public IEnumerable<Page> AllPages { get; set; }
    }
}